let marbleRaceLevel1_13 = {
	name: 'Game 1 Level 13',
	id: '1_13',
	type: 'elimination',
	eliminated: 1,
	objects: [
		// Portals
		{
			type: 'object',
			shape: 'rect',
			color: '@a',
			toPortal: 'a',
			x: 340,
			y: 80,
			width: 520,
			height: 40
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@a',
			toPortal: 'a',
			x: 340,
			y: 520,
			width: 520,
			height: 40
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@a',
			toPortal: 'a',
			x: 100,
			y: 300,
			width: 40,
			height: 480
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@goal',
			toPortal: 'goal',
			isGoal: true,
			x: 580,
			y: 300,
			width: 40,
			height: 400
		},
		{
			type: 'object',
			shape: 'circle',
			color: '@a',
			portalID: 'a',
			x: 340,
			y: 150,
			radius: 5,
		},

		// Goal portal
		{
			type: 'object',
			shape: 'circle',
			color: '@goal',
			portalID: 'goal',
			x: 700,
			y: 80,
			radius: 5
		},

		// Obstacles
		{
			type: 'object',
			shape: 'rect',
			color: '@secondary',
			x: 210,
			y: 150,
			width:10,
			height: 50,
			onBeforeUpdate:function(object,engine){
				let phase=engine.time
				phase-=Math.floor(phase)
				engine.setPosition(object.body,[520*phase+80,150])
				//engine.setAngle(object.body,5*Math.sin(5*engine.time))
			}
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@secondary',
			x: 210,
			y: 150,
			width:10,
			height: 50,
			onBeforeUpdate:function(object,engine){
				let phase=.5+engine.time
				phase-=Math.floor(phase)
				engine.setPosition(object.body,[520*phase+80,150])
				//engine.setAngle(object.body,5*Math.sin(5*engine.time))
			}
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@secondary',
			x: 210,
			y: 300,
			width:10,
			height: 50,
			onBeforeUpdate:function(object,engine){
				let phase=.25+engine.time
				phase-=Math.floor(phase)
				engine.setPosition(object.body,[520*phase+80,300])
				//engine.setAngle(object.body,5*Math.sin(5*engine.time))
			}
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@secondary',
			x: 210,
			y: 300,
			width:10,
			height: 50,
			onBeforeUpdate:function(object,engine){
				let phase=.75+engine.time
				phase-=Math.floor(phase)
				engine.setPosition(object.body,[520*phase+80,300])
				//engine.setAngle(object.body,5*Math.sin(5*engine.time))
			}
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@secondary',
			x: 210,
			y: 450,
			width:10,
			height: 50,
			onBeforeUpdate:function(object,engine){
				let phase=engine.time
				phase-=Math.floor(phase)
				engine.setPosition(object.body,[520*phase+80,450])
				//engine.setAngle(object.body,5*Math.sin(5*engine.time))
			}
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@a',
			toPortal: 'a',
			x: 210,
			y: 450,
			width:10,
			height: 50,
			onBeforeUpdate:function(object,engine){
				let phase=.5+engine.time
				phase-=Math.floor(phase)
				engine.setPosition(object.body,[520*phase+80,450])
				//engine.setAngle(object.body,5*Math.sin(5*engine.time))
			}
		},

		// Borders
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 400,
			y: 0,
			width: 800,
			height: 120
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 400,
			y: 600,
			width: 800,
			height: 120
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 0,
			y: 300,
			width: 160,
			height: 600
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 800,
			y: 300,
			width: 160,
			height: 600
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 640,
			y: 300,
			width: 80,
			height: 600
		},

		// Marbles
		{
			type: 'marbles',
			x: 340,
			y: 300,
			launchTime: 3,
			launchRadius: 75,
			passX: 700,
			passY: 80,
			radius: 8,
			eliminatedRadius: 6,
			velocity: 5
		},
	]
}
marbleRaceLevels.push(marbleRaceLevel1_13)